<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class RecordController extends Controller
{
    //我的使用记录
    public function index()
    {
        $user = Auth::user();
        $records = $user->record()->get();
        return view('user.record', compact('user','records'));
    }
}
